package com.qingfeng.medical.biz.information.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qingfeng.medical.base.converter.MyListLongFieldTypeHandler;
import com.qingfeng.medical.base.converter.MyListStringFieldTypeHandler;
import com.qingfeng.medical.base.domain.entity.BaseEntity;
import com.qingfeng.medical.biz.information.domain.enums.DoctorPositionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 医师信息表
 * 
 * @author 清风学Java
 * @date 2023-04-08 23:43:31
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "医师信息表")
@TableName(value = "doctor_info",autoResultMap = true)
public class DoctorInfo extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户id")
	private Long userId;

	@ApiModelProperty(value = "医师职称 （枚举设置）")
	private DoctorPositionEnum position;

	@ApiModelProperty(value = "所属科室门诊信息")
	@TableField(typeHandler = MyListLongFieldTypeHandler.class)
	private List<List<Long>> departmentPatient;

	@ApiModelProperty(value = "上班时间")
	@TableField(typeHandler = MyListStringFieldTypeHandler.class)
	private List<String> weekday;

	@ApiModelProperty(value = "主治简介")
	private String introduction;
}
